package com.kk.poseidon.example;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
* ApplicationContext.java
* 类说明 TODO
*
* @author chengkai
* @date  2017年5月25日 下午5:24:21
*/
@Component
public class ApplicationContextUtils implements ApplicationContextAware {

    private ApplicationContext context;
    
    @Override
    public void setApplicationContext(ApplicationContext context) throws BeansException {
        this.context = context;
    }
    
    public ApplicationContext get() {
        return context;
    }

}
